home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / Developer University / DU Projects / Talker Part / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-12-11  |  1.8 KB  |  59 lines  |  [TEXT/CWIE]

  1. //========================================================================================
  2. //    Release Version:    $ ODF 3 $
  3. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  4. //========================================================================================
  5.  
  6. #ifndef PART_H
  7. #define PART_H
  8.  
  9. //=======================================================================
  10. #ifndef DEFINES_K
  11. #include "Defines.k"
  12. #endif
  13.  
  14. // ----- Framework Includes -----
  15. #ifndef FWPART_H
  16. #include "FWPart.h"            // FW_CPart
  17. #endif
  18.  
  19. // ----- Foundation Layer -----
  20. #ifndef FWSTDDEF_H
  21. #include <FWStdDef.h>        // ?
  22. #endif
  23.  
  24. //=======================================================================
  25. const ODValueType    kAppleTEXTScrap = "Apple:OSType:Scrap:TEXT";
  26. const ODValueType    kAppleTEXTfile     = "Apple:OSType:FileType:TEXT";
  27.  
  28. //=======================================================================
  29. class FW_CPresentation;
  30. class CTalkerContent;
  31.  
  32. //=======================================================================
  33. class CTalkerPart : public FW_CPart {
  34. public:
  35.     FW_DECLARE_AUTO(CTalkerPart)
  36.                         CTalkerPart(ODPart* odPart);
  37.     virtual             ~CTalkerPart();
  38. // overrides
  39. protected:
  40.     virtual FW_CContent* NewPartContent(Environment* ev);
  41.     virtual void         Initialize(Environment* ev, 
  42.                                  ODStorageUnit* storageUnit, 
  43.                                  FW_Boolean fromStorage);
  44.     virtual FW_CFrame*    NewFrame(Environment* ev,
  45.                                  ODFrame* odFrame,
  46.                                  FW_CPresentation* presentation,
  47.                                  FW_Boolean fromStorage);
  48.     virtual FW_Handled    DoAbout(Environment* ev);
  49. // new members
  50. public:
  51.     virtual void        PartChanged(Environment* ev, FW_Boolean invalidateOnly);
  52. private:
  53.     FW_CPresentation*    fPresentation;
  54.     CTalkerContent*        fPartContent;
  55. };
  56.  
  57. //=======================================================================
  58. #endif
  59.